package org.sunspotworld.demo;

/**
 *
 * @author Krish
 * @revised by mi zhang
 */
public interface PacketTypes {

    // TODO can change on Mi's implementation
    /*???????????????????????? Client command to locate a display server. */
    public static final byte LOCATE_DISPLAY_SERVER_REQ  = 1;    // sent to display host (broadcast)
    /* Start sampling. */
    //public static final byte DISPLAY_SERVER_RESTART     = 2;   // sent to any clients (broadcast)
    public static final byte DISPLAY_SERVER_START       = 2;
    /* Pause sampling. */
    public static final byte DISPLAY_SERVER_PAUSE       = 3;
    /* Stop sampling and quit. */
    public static final byte DISPLAY_SERVER_STOP        = 4;
    /* Done with adding all the sensors. */
    public static final byte FINISH_CONFIG_REQ          = 5;
    /* This is called in reply to the Finish Confguration Request (FINISH_CONFIG_REQ)
     * along with the packet format of the sensors.
     */
    public static final byte FINISH_CONFIG_REPLY        = 6;
    /* Add one sensor */
    public static final byte ADD_SENSOR                 = 7;
    /* Remove one sensor */
    public static final byte REM_SENSOR                 = 8;

    public static final byte GET_SCALE_REQ = 9;
    public static final byte SET_SCALE_REQ = 10;
    public static final byte CALIBRATE_REQ = 11;
    public static final byte GET_SCALE_REPLY =12;
    public static final byte SET_SCALE_REPLY =13;
    public static final byte CALIBRATE_REPLY = 14;

    /* Indicate this is the data datagram */
    public static final byte DATA_REPLY                 = 15;


    /*??????????????????* Client reply with any error message for the host to display. */
    public static final byte MESSAGE_REPLY = 108;
    /*????????????????? blink led to detect the free ranger */
    public static final byte BLINK_LED = 109;
    /*???????????????????* Client reply to a ping includes the radio signal strength & battery level. */
    public static final byte PING_REPLY = 110;

}